package com.myrules;

import com.netflix.loadbalancer.IRule;
import com.netflix.loadbalancer.RandomRule;
import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

/**
 * @author: wu linchun
 * @time: 2021/10/6 17:13
 * @description:
 */
@Configuration
public class WRule {
    @Bean
    public IRule myWRule() {
        return new MyRibbonRule();
//        return new RandomRule();
    }
}
